<div class="container" ng-controller="TenderNewsCtrl">
    <div class="body">
        <div class="left">
            <ul>
                <li ng-repeat="operation in data.operationList">
                    <a href="{{operation.url}}" style="color:#fff;background:#1ebdff;text-decoration:none;" ng-if="operation.url == nowUrl">{{operation.name}}</a>
                    <a href="{{operation.url}}" ng-if="operation.url != nowUrl">{{operation.name}}</a>
                </li>
            </ul>
        </div>
        <div class="right">
            <div class="newtender">
                <h3>最新招标信息</h3>
                <button class="addcompany btn btn-default pull-right" ng-click="createNews()">
                    <img src="./images/tendernews_edit.png" alt="">
                    发布招标资讯
                </button>
                <ul class="tender-info">
                    <li ng-repeat="tendernews in data.tendernewsList track by $index">
                        <a href="#/tendernewsdetail/{{tendernews.newsID}}">{{(number+$index+1)+". "+tendernews.title}}</a>
                        <div class="tenderright">
                            <span class="tenderplace">{{tendernews.place}}</span>
                            <span class="tenderdate">{{tendernews.date}}</span>
                            <button class="btn btn-default" ng-click="deleteTenderNews(tendernews.newsID)">删除</button>
                            <!--<button class="btn btn-default" ng-click="">编辑</button>-->
                        </div>
                    </li>
                </ul>
            </div>
            <form  role = "form" style="float:right;margin-top:20px;">
                <div class = "form-group">
                    <label class = "sr-only">上一页</label>
                    <button class="btn btn-default" ng-disabled="data.prevDisable" ng-click="prevPageBtn()">上一页</button>
                    <label class = "sr-only">下一页</label>
                    <button class="btn btn-default" ng-disabled="data.nextDisable" ng-click="nextPageBtn()">下一页</button>
                    <label class = "sr-only">下拉列表</label>
                    <input type="number" min="1" style="width:50px;" ng-model="data.number"/>
                    <label class = "sr-only">确定</label>
                    <button class="btn btn-default" ng-click="btnClicked()">确定</button>
                </div>
            </form>
        </div>
    </div>
</div>
